package com.leon.learnenginespace.drools.utils.operation.impl;

import com.leon.learnenginespace.drools.utils.operation.IOperationBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 不等于
 * @author DJ032474
 */
@Component
public class NotEqualsOperation implements IOperationBase {
    @Autowired
    private EqualsOperation equalsOperation;
    /**
     * v1！=v2
     * @param v 值
     * @return
     */
    @Override
    public Boolean operation(String dataType, Object ...v) {
        Object v1 = v[0];
        Object v2 = v[1];
        return !equalsOperation.operation(dataType,v1, v2);
    }
}
